package com.rd.student.jiaji.class2.duyukun.Day0802;

public class Math extends Class{
    String name;
    int age;

    public String getName() {
        return name = "李四";
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age = 36;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    void teacher() {
        System.out.println("这节课是数学");
    }
}
